package org.wk.news.dao;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.wk.core.db.dao.GenericJpaRepository;
import org.wk.news.domain.NewsManage;

import javax.transaction.Transactional;
import java.util.List;

public interface NewsManageDao extends GenericJpaRepository<NewsManage,String> {
    // 删除资讯
    @Transactional
    void deleteByIdIn(List<String> ids);
    // 根据资讯分类获取资讯列表
    Page<NewsManage> findByClassifiedId(Pageable pageable);
}
